* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 14px;
  background-color: var(--color-bg-1);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.echarts-tooltip-diy {
  background: linear-gradient(
    304.17deg,
    rgba(253, 254, 255, 0.6) -6.04%,
    rgba(244, 247, 252, 0.6) 85.2%
  ) !important;
  border: none !important;
  backdrop-filter: blur(10px) !important;
  /* Note: backdrop-filter has minimal browser support */

  border-radius: 6px !important;
  .content-panel {
    display: flex;
    justify-content: space-between;
    padding: 0 9px;
    background: rgba(255, 255, 255, 0.8);
    width: 164px;
    height: 32px;
    line-height: 32px;
    box-shadow: 6px 0px 20px rgba(34, 87, 188, 0.1);
    border-radius: 4px;
    margin-bottom: 4px;
  }
  .tooltip-title {
    margin: 0 0 10px 0;
  }
  p {
    margin: 0;
  }
  .tooltip-title,
  .tooltip-value {
    font-size: 13px;
    line-height: 15px;
    display: flex;
    align-items: center;
    text-align: right;
    color: #1d2129;
    font-weight: bold;
  }
  .tooltip-item-icon {
    display: inline-block;
    margin-right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }
}

.general-card {
  border-radius: 4px;
  border: none;
  & > .arco-card-header {
    height: auto;
    padding: 20px;
    border: none;
  }
  & > .arco-card-body {
    padding: 0 20px 20px 20px;
  }
}

.split-line {
  border-color: rgb(var(--gray-2));
}

.arco-table-cell {
  .circle {
    display: inline-block;
    margin-right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgb(var(--blue-6));
    &.pass {
      background-color: rgb(var(--green-6));
    }
  }
}

.grey-bg {
  background-color: #f2f3f5;
  padding: 0.5rem;
}

.transparent-drawer-wrapper {
  .arco-drawer {
    background-color: #f2f3f5;
  }
  .arco-drawer-header,
  .arco-drawer-footer {
    border-radius: 4px;
    overflow: hidden;
    background-color: #ffffff;
  }
  .arco-drawer-body {
    padding: 0;
    background-color: #f2f3f5;
  }
}

.card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.col {
  display: flex;
  flex-direction: column;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.action-wrapper {
  margin-bottom: 80px;
}
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  padding: 14px 20px 14px 0;
  z-index: 1;
  background: var(--color-bg-2);
  text-align: right;
  box-shadow: 0px -6px 22px -2px rgba(177, 189, 208, 0.75);
  -webkit-box-shadow: 0px -6px 22px -2px rgba(177, 189, 208, 0.75);
  -moz-box-shadow: 0px -6px 22px -2px rgba(177, 189, 208, 0.75);
}

.readonly-form {
  .arco-input-wrapper .arco-input[disabled] {
    -webkit-text-fill-color: var(--color-text-1) !important;
  }

  .arco-input-wrapper .arco-input[disabled]::placeholder {
    -webkit-text-fill-color: transparent !important;
    color: transparent;
  }

  .arco-textarea[disabled] {
    -webkit-text-fill-color: var(--color-text-1) !important;
  }

  .arco-textarea[disabled]::placeholder {
    -webkit-text-fill-color: transparent !important;
    color: transparent;
  }

  .arco-input-wrapper.arco-input-disabled {
    background-color: var(--color-fill-1) !important;
  }

  .arco-select-view-disabled {
    -webkit-text-fill-color: var(--color-text-1) !important;
    background-color: var(--color-fill-1) !important;
  }
}

.arco-btn-status-normal.arco-btn-dashed {
  color: rgb(var(--primary-6));
  background-color: var(--color-primary-light-1);
  border: 1px dashed var(--color-neutral-3);
}

.page-drawer {
  // left: 0.5rem;
  // right: 0.5rem;
  // top: 0.5rem;

  .arco-drawer {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    overflow: hidden;
    left: 2rem;
    top: 2rem;
    bottom: 0;
    width: calc(100% - 4rem);
    // border: 1px solid #dcdcdc;
    // --tw-shadow-color: #bfdbfe;
    // --tw-shadow: var(--tw-shadow-colored);
    // box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    //   var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    box-shadow: 0px 10px 20px 5px rgba(0, 0, 0, 0.1);
  }

  .arco-drawer-mask {
    background-color: #e5e5e590;
    /* 背景模糊 */
    backdrop-filter: blur(10px);
  }
}

.page-title {
  letter-spacing: 0.025em;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.75rem;
  margin-bottom: 1.25rem;
  height: 25px;
}

.flex-desc {
  .arco-descriptions-row {
    display: flex;
  }
  .arco-descriptions-item-label {
    width: 80px;
  }
  .arco-descriptions-item-value {
    flex: 1;
  }
}
